﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using Common.Types;
using Places;

namespace ConsoleTester
{
    class Program
    {
        static void Main(string[] args)
        {
            var key = ConfigurationManager.AppSettings["APIKey"];

            var service = new Service(key);
            
            var request = new PlacesRequest
                              {
                                  Key = key,
                                  Sensor = true.ToString(),
                                  Language = "pl-PL",
                                  Location = string.Format("{0},{1}", 52.262432, 20.987594),
                                  Radius = "200"
                              };


            var result = service.GetResponse(request);

            Console.ReadLine();
        }
    }
}
